<template>
  <div class="Box_U">
    <div class="Edit_U">
      <el-form ref="form" :model="form" label-width="80px" >
        <el-form-item label="姓名">
          <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="学号">
          <el-input v-model="form.number"></el-input>
        </el-form-item>
        </el-form-item>
        <el-form-item label="班级">
          <el-input v-model="form._class"></el-input>
        </el-form-item>
        <el-form-item label="专业">
          <el-input v-model="form.major"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">立即创建</el-button>
          <el-button>取消</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<style scoped>
    .Box_U{
      margin-left:30%;
      height: 400px;
      width: 30%;
      border: 1px solid #e4e8f1;
    }
    .Edit_U{
      margin-top: 5%;
      width: 60%;
    }
</style>
<script>
  export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>
